home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / tcsh-6.05 / README < prev    next >
Encoding:
Text File  |  1995-07-14  |  8.3 KB  |  197 lines

  1. This is tcsh version 6.05.  Tcsh is a version of the Berkeley
  2. C-Shell, with the addition of: a command line editor, command and file
  3. name completion, listing, etc. and a bunch of small additions to the
  4. shell itself.
  5.  
  6. Tcsh has been ported to most unix variants, and can be tinkered to work
  7. in unix systems that it has not ported yet. See the Ported file for
  8. a more complete list of ported systems and in the config directory for
  9. a configuration file that matches your system.
  10. Tcsh also runs under VMS/POSIX and OS/2+emx; the OS/2 port is not
  11. complete yet.
  12.  
  13. Feel free to use it.  These changes to csh may only be included in a
  14. commercial product if the inclusion or exclusion does not change the
  15. purchase price, level of support, etc.  Please respect the individual
  16. authors by giving credit where credit is due (in other words, don't
  17. claim that you wrote portions that you haven't, and don't delete the
  18. names of the authors from the source code or documentation).  
  19.  
  20. To install tcsh:
  21.  
  22. 0)  If you are using imake, try xmkmf and goto step 3.
  23.     If imake does not work, copy Makefile.std to Makefile.
  24.  
  25. 1)  Look at the Makefile and make sure that you are using the right
  26.     compilation flags.
  27.  
  28. 2)  Copy the appropriate for your machine and OS config file from the
  29.     config subdirectory into config.h.  Consult the file "Ported" for
  30.     settings known to work on various machines.  If you are trying to
  31.     compile tcsh on a machine for which there is no config file yet,
  32.     you will need to create a config file using as a template one of
  33.     the supplied ones.  If you get tcsh working on a new machine, I'd
  34.     appreciate a copy of the config file plus additional information
  35.     about the architecture/OS.  If you are creating a new config file,
  36.     look very hard at BSDJOBS, BSDSIGS, and BSDTIMES if you are running
  37.     a non-BSD machine.  For vanila SysV, these would all be #undef-ed,
  38.     but others may vary (such as A/UX or HPUX).  On a pyramid, compile
  39.     in the UCB universe even if you are running under the ATT universe
  40.     usually; it will work anyway, and you get job control for free.
  41.  
  42. 3)  Look at config_f.h, and enable or disable any features you want.
  43.     It is configured the way I like it, but you may disagree.
  44.     If you do not have NLS, then locale.h will not be found. Undefine it
  45.     and things should work ok. On the other hand, if you have NLS you
  46.     might as well use it...
  47.  
  48. 4)  Look at host.defs to make sure that you have the right defines to set
  49.     the environment variables "HOSTTYPE", "MACHTYPE", "OSTYPE" and 
  50.     "VENDOR" correctly.  If you need to make changes, PLEASE SEND THEM 
  51.     BACK TO ME.
  52.  
  53. 5)  You may want to adjust the DESTDIR and DESTMAN entries in the
  54.     Makefile.  These are the directories that tcsh, and the tcsh.1 man
  55.     entry will be placed in when you do a "make install".  If you decide
  56.     to install tcsh somewhere other than in /usr/local/bin/tcsh, you should
  57.     #define _PATH_TCSHELL "/your/installation/directory/tcsh" in pathnames.h.
  58.  
  59. 6)  make
  60.  
  61. 7)  Read the documentation while you are waiting.  The file tcsh.man
  62.     is in standard [nt]roff -man format. If you like, you can run the
  63.     tcsh.man2html script (requires Perl) to generate an HTML version of
  64.     the manpage which you can read with Mosaic, lynx or other HTML browser.
  65.  
  66. 8)  Test tcsh to see that it has compiled correctly.  The history
  67.     command should give a time stamp on every entry.  Typing normal
  68.     characters should echo each exactly once.  Control-A should put the
  69.     cursor at the beginning of the input line, but after the prompt.
  70.     Typing characters after that should insert them into the line.
  71.     If you have job control make sure that stopping and restarting
  72.     jobs works. Make sure you can ^C in the middle of the input line.
  73.     Also make sure that pipelines work correctly and there
  74.     are no races. Try 'echo | cat | cat | cat | cat | more' a couple
  75.     of times. If you have job control, try this command in the background
  76.     and bring it in the foreground when it stops for tty output. 
  77.     Also make sure that the ioctl() modes are preserved.
  78.     Get into vi, enter and exit input mode and suspend it, background
  79.     it and foreground it again. After all that, lastly make sure that
  80.     the tty process group manipulation is happening correctly. Try
  81.     ftp to some host. If your passwd appears on the screen, you have
  82.     lost /dev/tty. Otherwise everything is fine. 
  83.  
  84. 9)  Enjoy.
  85.  
  86. 10) PLEASE send any bug reports (and fixes), code for new features,
  87.     comments, questions, etc. (even flames) to:
  88.  
  89.          -- Christos Zoulas
  90.         christos@ee.cornell.edu
  91.  
  92. Various:
  93.  
  94. ***************************************************************************
  95.  
  96. On sysv versions < 3.0 (not hpux) Doug Gwyn's public domain directory 
  97. manipulation library has to be installed. This library is available
  98. for anonymous ftp from prep.ai.mit.edu:/pub/gnu/dirent.tar.Z
  99. If the network is not installed, then there is a gethostname()
  100. routine is tc.os.c, enabled by defining NEEDgethostname
  101.  
  102. ***************************************************************************
  103.  
  104. On BSDreno, in ttyname() closedir() is called twice and so the same
  105. pointer gets free'd twice. tcsh's malloc is picky and it prints an
  106. error message to that effect. If you don't like the message:
  107.  
  108. 1. Apply the following patch:
  109.  
  110. *** /usr/src/lib/libc/gen/ttyname.c.orig    Fri Jun  1 17:17:15 1990
  111. --- /usr/src/lib/libc/gen/ttyname.c    Tue Oct 29 16:33:12 1991
  112. ***************
  113. *** 51,57 ****
  114.           if (stat(buf, &sb2) < 0 || sb1.st_dev != sb2.st_dev ||
  115.               sb1.st_ino != sb2.st_ino)
  116.               continue;
  117. -         closedir(dp);
  118.           rval = buf;
  119.           break;
  120.       }
  121. --- 51,56 ----
  122.  
  123. Or: Comment the error printing out in tc.alloc.c
  124. Or: Compile -DSYSMALLOC
  125.  
  126.  
  127. ***************************************************************************
  128.  
  129. From: Scott Krotz <krotz@honey.rtsg.mot.com>
  130.  
  131. Tcsh has been ported to minix by  Scott Krotz (krotz@honey.rtsg.mot.com).
  132. Unfortunately the minix sed is broken, so you'll have to find a way to
  133. make tc.const.h, sh.err.h, ed.defns.h which are automatically generated.
  134. The easiest way to create them is to make a copy from unix, copying 
  135. minix to config.h, and then 'make sh.err.h tc.const.h ed.defns.h'
  136.  
  137. The OS/dependent files are in mi.termios.h, mi.wait.h, mi.varargs.h
  138.  
  139. You will get some warnings, but dont worry about them, just ignore
  140. them.  After tcsh has compiled and the gcc binary is converted to a
  141. minix binary, remember to chmem it to give it more memory - it will
  142. need it!  How much you need depends on how many aliases you have, etc..
  143. Add at least 50000 to it.
  144.  
  145. One last thing.  You might have to make some links for include files so
  146. that they are in the directories that tcsh is expecting while compiling.
  147. I forget if I had to do this or not, but it should be fairly easy to sort
  148. out.  If it cant find any include files this is probably the reason.
  149.  
  150. If you have any problems, please tell me.  I can be contacted through
  151. e-mail at:
  152.  
  153. krotz@honey.rtsg.mot.com
  154.  
  155. I also read comp.os.minix on a regular basis, so a note there will get
  156. my attention also.
  157.  
  158. Have fun!
  159.  
  160. ps.  The termios functions are provided by Magnus Doell and Bruce Evans.
  161.      Thanks, guys!
  162.  
  163.  
  164. From: Bob Byrnes <byrnes@ee.cornell.edu>
  165.  
  166. This is for minix 1.5 (straight out of the box from P-H) plus the i386
  167. patches from Bruce Evans.
  168.  
  169. I cross-compiled on a Sun using gcc 2.1 with a target of i386-bsd
  170. (using the minix include files instead of the bsd versions), and then
  171. linked the resulting object files with similarly compiled crtso.o and
  172. libc.a on vax (little endian) using a hacked version of ld which I put
  173. together to generate minix executables instead of bsd a.out format.
  174. What a kludge ...
  175.  
  176. I compiled with -O2 -Wall ...  So far I haven't noticed any problems
  177. with the optimizer.
  178.  
  179. In case anyone is contemplating compiling tcsh with bcc (Bruce Evan's
  180. i386 compiler that comes with the minix386 upgrade package), don't bother.
  181. It is some serious bugs that kill tcsh when compiled for 16-bit characters.
  182. I can provide more details of bugs that I noticed for brave souls who want
  183. to try, but it would be hard (and why bother if you can get gcc?).
  184.  
  185. I can make the binary available to anyone who wants it (for example people
  186. who can't get access to a cross-compiling environment, and who don't yet
  187. have gcc running under minix).
  188.  
  189.  
  190. ***************************************************************************
  191.  
  192. If your compiler cannot handle long symbol names, add 
  193.  
  194. #include "snames.h" 
  195.  
  196. to your config.h file
  197.